package com.idheima.zuoye.zuoye5;

public class Test {
    public static void main(String[] args) {
        Breeder b = new Breeder();
        //   b.breed(new Dog());
        // b.breed(new Sheep());
        //  b.breed(new Frog());
        Dog d = new Dog();
        b.competition(d);
        Sheep s = new Sheep();
        // b.competition(s);
        Frog f = new Frog();
        b.competition(f);
    }
}
